package com.sl.yidui_maohao;

/**
 * Created by lisulong on 2019/11/1.
 */
public class TwoColonsNew {
    public String name;
    public TwoColonsNew(String name) {
        this.name = name;
        // System.out.println(this.name);
    }
    public static void main(String[] args) {
        TwoColonsInterface si = TwoColonsNew::new;
        TwoColonsNew twoC = si.build("loader");
        System.out.println(twoC.name);
    }
}
@FunctionalInterface
interface TwoColonsInterface {
    // 返回构造对象
    TwoColonsNew build(String name);
}